"""
@-*- coding: utf-8 -*-
@ python: 3.12.3
@ 创建者: JacksonCode
@ 创建时间: 2025/6/16
"""

import requests
import json

headers = {
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "authorization": "SAPISIDHASH 1750055582_f1d2420b2e0444d9955ca28bf1bdec1210c12685_u SAPISID1PHASH 1750055582_f1d2420b2e0444d9955ca28bf1bdec1210c12685_u SAPISID3PHASH 1750055582_f1d2420b2e0444d9955ca28bf1bdec1210c12685_u",
    "content-type": "application/json",
    "origin": "https://www.youtube.com",
    "priority": "u=1, i",
    "referer": "https://www.youtube.com/",
    "sec-ch-ua": "\"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\", \"Google Chrome\";v=\"137\"",
    "sec-ch-ua-arch": "\"x86\"",
    "sec-ch-ua-bitness": "\"64\"",
    "sec-ch-ua-form-factors": "\"Desktop\"",
    "sec-ch-ua-full-version": "\"137.0.7151.104\"",
    "sec-ch-ua-full-version-list": "\"Chromium\";v=\"137.0.7151.104\", \"Not/A)Brand\";v=\"24.0.0.0\", \"Google Chrome\";v=\"137.0.7151.104\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-model": "\"\"",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-ch-ua-platform-version": "\"10.0.0\"",
    "sec-ch-ua-wow64": "?0",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "same-origin",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
    "x-goog-authuser": "0",
    "x-goog-visitor-id": "Cgt1TER6VEF6bEhscyi8877CBjIKCgJJUhIEGgAgUA%3D%3D",
    "x-origin": "https://www.youtube.com",
    "x-youtube-bootstrap-logged-in": "true",
    "x-youtube-client-name": "1",
    "x-youtube-client-version": "2.20250613.00.00"
}
cookies = {
    "VISITOR_INFO1_LIVE": "uLDzTAzlHls",
    "VISITOR_PRIVACY_METADATA": "CgJJUhIEGgAgUA%3D%3D",
    "HSID": "AR1uZaRaLkZ1nASF4",
    "SSID": "Ar0wj12DqLYAxo-Tj",
    "APISID": "55bWg323Fs2tWsQE/AnnotzIG9LSUQwqaN",
    "SAPISID": "oBdzPWFdUT7XTlt3/AMWgfCcrxlwKs03Ag",
    "__Secure-1PAPISID": "oBdzPWFdUT7XTlt3/AMWgfCcrxlwKs03Ag",
    "__Secure-3PAPISID": "oBdzPWFdUT7XTlt3/AMWgfCcrxlwKs03Ag",
    "SID": "g.a000xQj0rEm6Pyy49ZLpBSWskwCZ6x0IX2YygZPngNwLwWbUx1_0UNZJLiTBcOp75C2pxZEs7AACgYKAbgSARESFQHGX2Mie802X9qKaGseqLcIZac-cxoVAUF8yKpWUlkMHSJgIDgkFuwakFGa0076",
    "__Secure-1PSID": "g.a000xQj0rEm6Pyy49ZLpBSWskwCZ6x0IX2YygZPngNwLwWbUx1_075IqLaGSEHJghM9_hcsJ0gACgYKAbUSARESFQHGX2MimxLPjBzy58DVvNR4jPoX9xoVAUF8yKqAbqiW_Cx9ZRWRYJYKSp8b0076",
    "__Secure-3PSID": "g.a000xQj0rEm6Pyy49ZLpBSWskwCZ6x0IX2YygZPngNwLwWbUx1_00yVjpXQfzW9kecMiLz51mAACgYKAa8SARESFQHGX2MiMHz8A7QIUhGt0v8PINmrmRoVAUF8yKosqjApSXS79ZEPkOxQ9OUB0076",
    "LOGIN_INFO": "AFmmF2swRQIhAMneBnUomnKMGEG2kPJGb0t0Yg274Ul9v37AAptKwNgwAiBFoEx-O6OOj4T6q1jAa-OflZrL9F6iVPWYIyZfAcjeGg:QUQ3MjNmeDJmcEMyUkFxYmhRMUx6VU1QWjktWnpEd1g3dmdwTUxyUVJZZUdEOWZlQkpZMlJRWEVac1J2c0VKMzBUTjg1aXNIbWdXN05mWk1YMW1LemlaVjVKSnNnUGcwS2ZGckNzajJ0Q2NaYnI4Q3pqcEF5SXUtTkNhOVFBVWIyUTlTM29ZajNEU0lRMHR0c1lIb0tXd2JHWDJXTmZZTUdn",
    "__Secure-ROLLOUT_TOKEN": "CM-kjoX3lt2_vQEQhpLXieytigMY8Pft1ZzzjQM%3D",
    "YSC": "MnJ3OvhhXC0",
    "NID": "524=Kbz2IEYTKSbmb54rW0HLPJ_OjTZv16YHM_pSMaf_qPmGBIFgIys5Ub0wL0nw16y7WHFMwb6IGPLl713lkdu_eiIQE2gJkWXpW0z8q54se-s7IlWMvoBTgKJEhSpHohC5pEwfB12aFoItlP352iDaVdcW-oFWUaSi8cTTCwgrqPGsfd6m1RgF-IiYdHS3xu7cpNL54O9d0xS6GOPuehBi4MRZBiyszVp21XKCUdaMAbCJU7InzLNoo8_gHAysmG925bha09N2baoxUxZkLqn12gIOXk3cbmmySHIJ1FRoSTXpU0OS9mcAlVmYLK_Af9_Q5oM4DY_PLmjrIQ",
    "__Secure-1PSIDTS": "sidts-CjEB5H03P8DO3yKHNGQuO2099gBzuSjahECIaTWQWaXno5YOukiiPlECYl66XvFcDanhEAA",
    "__Secure-3PSIDTS": "sidts-CjEB5H03P8DO3yKHNGQuO2099gBzuSjahECIaTWQWaXno5YOukiiPlECYl66XvFcDanhEAA",
    "PREF": "tz=Etc.GMT-8&f5=30000&f7=100&f4=4000000",
    "ST-3opvp5": "session_logininfo=AFmmF2swRQIhAMneBnUomnKMGEG2kPJGb0t0Yg274Ul9v37AAptKwNgwAiBFoEx-O6OOj4T6q1jAa-OflZrL9F6iVPWYIyZfAcjeGg%3AQUQ3MjNmeDJmcEMyUkFxYmhRMUx6VU1QWjktWnpEd1g3dmdwTUxyUVJZZUdEOWZlQkpZMlJRWEVac1J2c0VKMzBUTjg1aXNIbWdXN05mWk1YMW1LemlaVjVKSnNnUGcwS2ZGckNzajJ0Q2NaYnI4Q3pqcEF5SXUtTkNhOVFBVWIyUTlTM29ZajNEU0lRMHR0c1lIb0tXd2JHWDJXTmZZTUdn",
    "SIDCC": "AKEyXzUmrFi4n6baFiYkSVOIWMbSwGBHWRJK1czBsREu_iwt_PkXzEiX3N8DZXEP0Okg6zF0dCA",
    "__Secure-1PSIDCC": "AKEyXzVbCh1FTtkXZir4gnKvLH_9y_ZwHDAIb0PU_thdjTTjf8mzMOX0gTLonbPmI82EtzBip5I",
    "__Secure-3PSIDCC": "AKEyXzW_2KdW7lMsCM6pzUIvsAbw5zHGW7RZrXi30f2pwS0dKYdODfiXEm0v9NyAyBrGnxnguIY",
    "ST-yve142": "session_logininfo=AFmmF2swRQIhAMneBnUomnKMGEG2kPJGb0t0Yg274Ul9v37AAptKwNgwAiBFoEx-O6OOj4T6q1jAa-OflZrL9F6iVPWYIyZfAcjeGg%3AQUQ3MjNmeDJmcEMyUkFxYmhRMUx6VU1QWjktWnpEd1g3dmdwTUxyUVJZZUdEOWZlQkpZMlJRWEVac1J2c0VKMzBUTjg1aXNIbWdXN05mWk1YMW1LemlaVjVKSnNnUGcwS2ZGckNzajJ0Q2NaYnI4Q3pqcEF5SXUtTkNhOVFBVWIyUTlTM29ZajNEU0lRMHR0c1lIb0tXd2JHWDJXTmZZTUdn"
}
url = "https://xxlsms.clm.cn/sdflasdf"

params = {
    "prettyPrint": "false"
}
data = {
    "context": {
        "client": {
            "hl": "zh-CN",
            "gl": "US",
            "remoteHost": "50.7.253.114",
            "deviceMake": "",
            "deviceModel": "",
            "visitorData": "Cgt1TER6VEF6bEhscyi8877CBjIKCgJJUhIEGgAgUA%3D%3D",
            "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36,gzip(gfe)",
            "clientName": "WEB",
            "clientVersion": "2.20250613.00.00",
            "osName": "Windows",
            "osVersion": "10.0",
            "originalUrl": "https://www.youtube.com/",
            "screenPixelDensity": 1,
            "platform": "DESKTOP",
            "clientFormFactor": "UNKNOWN_FORM_FACTOR",
            "configInfo": {
                "appInstallData": "CLzzvsIGEOWuzxw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nhDQU1TVkEwa3VOMjNBcVFabHgtb0tyVUV2Ulg5QTRPRm1oQy1BTndCaEFMNUR1NEFGS3NkLUJjVktwbXh0eC1GcEFXUm5BVzRnQUlFaXFzR2t5NmhxQVRkM1FZRnNTaWVlX1dJQnNoYXYwVzRDNmJ3QnN5Y0JnPT0%3D",
                "coldHashData": "CLzzvsIGEhM0NTk2OTE0MDI3ODkwNTcxNjY1GLzzvsIGMjJBT2pGb3gyU3JPUUVNemxPWUt4Nnd3by00allYS3UtV1FhNFRwcGJGdkM0TmpuT1o0UToyQU9qRm94MGpBZTlSbFN3Um5UYmZMSkdCaGd4RlMxaUdlRWlZUG9hdW12d3o0enZYS1FCeENBTVNWQTBrdU4yM0FxUVpseC1vS3JVRXZSWDlBNE9GbWhDLUFOd0JoQUw1RHU0QUZLc2QtQmNWS3BteHR4LUZwQVdSbkFXNGdBSUVpcXNHa3k2aHFBVGQzUVlGc1NpZWVfV0lCc2hhdjBXNEM2YndCc3ljQmc9PQ%3D%3D",
                "hotHashData": "CLzzvsIGEhM5NTg4OTgyNTM5NTgwNTc3MTUyGLzzvsIGKJTk_BIopdD9Eiiekf4SKMjK_hIot-r-EijBg_8SKJGM_xIo_vP_EijHgIATKIuCgBMotIOAEyjOhoATKKSIgBMotouAEyipjIATKJ2QgBMo-ZCAEyjVlIATKKaVgBMyMkFPakZveDJTck9RRU16bE9ZS3g2d3dvLTRqWVhLdS1XUWE0VHBwYkZ2QzROam5PWjRROjJBT2pGb3gwakFlOVJsU3dSblRiZkxKR0JoZ3hGUzFpR2VFaVlQb2F1bXZ3ejR6dlhLUUI0Q0FNU0lRMEtvdGY2RmE3QkJwTk44Z3E1QkJVWDNjX0NETWFuN1F2WXpRbWx3QVhXVnc9PQ%3D%3D"
            },
            "screenDensityFloat": 0.699999988079071,
            "userInterfaceTheme": "USER_INTERFACE_THEME_LIGHT",
            "timeZone": "Etc/GMT-8",
            "browserName": "Chrome",
            "browserVersion": "137.0.0.0",
            "acceptHeader": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
            "deviceExperimentId": "ChxOelV4TmpRek1EVXlNVGN6TXpjeE1URTVOUT09ELzzvsIGGLzzvsIG",
            "rolloutToken": "CM-kjoX3lt2_vQEQhpLXieytigMY8Pft1ZzzjQM%3D",
            "screenWidthPoints": 1675,
            "screenHeightPoints": 1370,
            "utcOffsetMinutes": 480,
            "connectionType": "CONN_CELLULAR_4G",
            "memoryTotalKbytes": "8000000",
            "mainAppWebInfo": {
                "graftUrl": "https://www.youtube.com/",
                "pwaInstallabilityStatus": "PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED",
                "webDisplayMode": "WEB_DISPLAY_MODE_BROWSER",
                "isWebNativeShareAvailable": True
            }
        },
        "user": {
            "lockedSafetyMode": False
        },
        "request": {
            "useSsl": True,
            "internalExperimentFlags": [],
            "consistencyTokenJars": []
        },
        "clickTracking": {
            "clickTrackingParams": "CBcQ8eIEIhMI1ZbP66j1jQMVYbJLBR1D5APX"
        },
        "adSignalsInfo": {
            "params": [
                {
                    "key": "dt",
                    "value": "1750055357708"
                },
                {
                    "key": "flash",
                    "value": "0"
                },
                {
                    "key": "frm",
                    "value": "0"
                },
                {
                    "key": "u_tz",
                    "value": "480"
                },
                {
                    "key": "u_his",
                    "value": "2"
                },
                {
                    "key": "u_h",
                    "value": "1029"
                },
                {
                    "key": "u_w",
                    "value": "1829"
                },
                {
                    "key": "u_ah",
                    "value": "991"
                },
                {
                    "key": "u_aw",
                    "value": "1829"
                },
                {
                    "key": "u_cd",
                    "value": "24"
                },
                {
                    "key": "bc",
                    "value": "31"
                },
                {
                    "key": "bih",
                    "value": "1370"
                },
                {
                    "key": "biw",
                    "value": "1652"
                },
                {
                    "key": "brdim",
                    "value": "-1829,-206,-1829,-206,1829,-206,1828,990,1675,1370"
                },
                {
                    "key": "vis",
                    "value": "1"
                },
                {
                    "key": "wgl",
                    "value": "true"
                },
                {
                    "key": "ca_type",
                    "value": "image"
                }
            ],
            "bid": "ANyPxKqwp_CHYxrWGf45ZpLLRIjjawGPIlEOE7PY9HmfBTGxwMF-hwe0rJRYMhNanjVVaA06TM9pEyClamUmhzPM-ca-P6DplQ"
        }
    },
    "continuation": "4qmFsgLUDBIPRkV3aGF0X3RvX3dhdGNoGqAMQ0JoNmt3bEhUMGRTYTJWNWJ6bFpNRVJOWjI5SmJITkVibXd0VHkwMUxXZFNWMjB3UzJGM2IxcGxXRkptWTBkR2JscFdPWHBpYlVaM1l6Sm9kbVJHT1hsYVYyUndZakkxYUdKQ1NXWmtlazVWVlZSc00wNUdSbmxQUkdoVlYxVTFiMUpIV25CYVJUbEpWMGRTUzFKWVpFTk5NbEkwWVhodmRFRkJRalpoUXpGRVZHZEJRbFpXVFVGQlZVNVBRVUZGUVZKclZqTmhSMFl3V0ROU2RsZ3paR2hrUjA1dlFVRkZRa0ZSUVVGQlVVRkJRVkZGUVZsclJVbEJRa2xVWTBkR2JscFdPWHBpYlVaM1l6Sm9kbVJHT1RCaU1uUnNZbWh2VkVOT1YxZDZMWFZ2T1Zrd1JFWlhSM2xUZDFWa1VTMVJSREY1U1ZSRFRsZFhlaTExYnpsWk1FUkdWMGQ1VTNkVlpGRXRVVVF4T1hKUGFTMXpUVzlCVlV0dVVWVkxSSE5KTFVOM2FXczFTa3d0YWpaVWIzaHdORUpEWnpORFVHZHZTVzA1VTBabk4xTldjQzEwWkVObk4wTlFaM05KTTBsaU56VTJVekoyWlhsaFFWRnZUM2RxTkV4RFN6SlFkMlpxZVY5T1UxWnNRVVZMUlVGdlRFTm5ia040T1hKSFExRk5TV2RCY25sUVowRkxSSE5KTFVOM2FXTXpUQzFpTkdWcFh6aHpPRUpEWnpkRFVHZHpTV3N0TFZGNGMweHBhMk15ZVVGUmIwOTNhalJNUTFCNmNYUm1kblIxV1hKWU5XZEZTMFJ6U1MxRGQycFpiR0pEVjI1T1ZIQTJZVlZDUTJjM1ExQm5jMGwyWD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TVk5OWVVKQlowVkZRVlZoUWtGblRVVkJNR0ZDUVdkVlJVSlZZVUpCWjFWRlFsbGhRa0ZuVlVWQ1kyRkNRV2RWUlVKbllVSkJaMVZGUW10aFFrRm5WVVZDYjJGQ1FXZFZSVUp6WVVKQloxVkZRbmRoUWtGblZVVkNNR0ZDUVdkb1JVTkroAQSaAhpicm93c2UtZmVlZEZFd2hhdF90b193YXRjaA%3D%3D"
}
data = json.dumps(data, separators=(',', ':'))

proxies = {
    "http": "http://127.0.0.1:3222",  # HTTP代理
    "https": "http://127.0.0.1:3222"  # HTTPS代理
}

# response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data, proxies=proxies)
response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data)

print(response.text)
print(response)
